package top.deepdesigner.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import top.deepdesigner.pojo.DtsGoodsProduct;

import java.util.List;

/**
 * <p>
 * 商品货品表 Mapper 接口
 * </p>
 *
 * @author zhaojian
 * @since 2021-05-12
 */
public interface DtsGoodsProductMapper extends BaseMapper<DtsGoodsProduct> {

  void insertAll(@Param("goodsId") Integer goodsId, @Param("products") List<DtsGoodsProduct> products);

  void updateToDeletedAll(@Param("goodsId") Integer goodsId, @Param("products") List<DtsGoodsProduct> products);

  void updateToNotDeletedAll(@Param("goodsId") Integer goodsId, @Param("products") List<DtsGoodsProduct> commonProducts);
}
